<div class="userclearfix profile-page">
	<div class="user-header"></div>
	<div class="userclearfix profile-content">
		<div class="column column-1">
			<div class="view view-picture">
				<div class="view-header">
					<p><?php print($account->name);?></p>
				</div>
				<div class="view-content">
					<?php  if($account->picture) {print theme('user_picture', $account);}?>
					<div class="online-status">
						<?php
						print "<p>";
						$time_period = variable_get('user_block_seconds_online', 2700);
						$uid = arg(1); // get the current userid that is being viewed.
						$users = db_query("SELECT uid, name, access FROM {users} WHERE access >= %d AND uid = $uid", time() - $time_period);
						$total_users = db_result($users);

						if ($total_users == 1) {
						$output = t('This user is currently online');
						}
						else {
							$output = t('This user is currently offline');    
						}
						print $output;
						print "</p>";
						?>
					</div>
					<div class="member-info">
						<p>Member for: <?php print (format_interval(time() - $account->created));?></p>
						<p>Member since: <?php print (format_date($account->created, 'small'));?></p>
					</div>
				</div>
			</div>
			<?php
			print views_embed_view('user_profile_info', 'Page', $account->name ); 
			?>
		</div>
		<div class="column column-2">
			<?php
			print views_embed_view('user_content', 'Page', $account->name ); 
			?>
		</div>
		<div class="column column-3">
			<?php
			print views_embed_view('user_profile_about', 'Page', $account->name ); 
			?>
		</div>
	</div>
	<div class="user-footer"></div>
</div>